package main

import (
	"fmt"
	"encoding/json"
)


func main(){
	
src := map[string]interface{}{
	"data": 111111,
	"is_file": true,
	"name": "123.jpg",
}

	// s := map[data:111111 is_file:true name:123.jpg]
	b, err := json.Marshal(src)
	fmt.Println(b)
	fmt.Println(src)
	fmt.Println(err)

	var images struct {
		Name   string      `json:"name"`
		Data   interface{} `json:"data"`
		IsFile bool        `json:"is_file"`
	}


	err = json.Unmarshal(b, &images)
	fmt.Println(images)
	fmt.Println(err)
}